package com.t2t.top.beanfactory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * BeanFactory测试
 */
public class FactoryBeanTest {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("simple-spring-factorybean.xml");
        People people = (People) ctx.getBean("people");
        System.out.println("FactoryBeanTest.main():" + people.toString());
    }

}